Skip to content

feat(logger): make announcement title configurable#325

Open
Aejkatappaja wants to merge 1 commit intoCodSpeedHQ:mainfrom
Aejkatappaja:feat/configurable-announcement-title
Open

feat(logger): make announcement title configurable#325
Aejkatappaja wants to merge 1 commit intoCodSpeedHQ:mainfrom
Aejkatappaja:feat/configurable-announcement-title

Conversation

@Aejkatappaja
Copy link
Copy Markdown

@Aejkatappaja Aejkatappaja commented Apr 29, 2026

Summary

  • Adds a 2-arg form to the announcement! macro so callers can specify a contextual title alongside the message. Provider loggers (GitHub Actions, GitLab CI, Buildkite) now surface the title where supported, and fall back to their previous defaults when the 1-arg form is used.

  • Updates the two OIDC-related announcements in the GitHub Actions provider to use the new "OIDC Authentication" title instead of relying on the generic "New CodSpeed Feature" default.

  • Closes the // TODO: make the announcement title configurable in src/run_environment/github_actions/logger.rs.

Behavior

Form Title surfaced Backward compatible
announcement!("msg") provider default (e.g. New CodSpeed Feature on GitHub Actions, [ANNOUNCEMENT] on Buildkite, none on GitLab) Yes
announcement!("title", "msg") the provided title New

Rendered output

CleanShot 2026-04-30 at 1  31 52@2x

Test plan

  • cargo build --workspace
  • cargo fmt --all -- --check
  • cargo test --workspace (221 passing, +5 new unit tests for the parser)
  • Verified rendered output across the three provider loggers in a local harness

Adds a 2-arg form to the `announcement!` macro so callers can specify a
contextual title alongside the message. Provider loggers (GitHub Actions,
GitLab CI, Buildkite) now surface the title where supported, and fall
back to their previous defaults when the 1-arg form is used.

Updates the two OIDC-related announcements in the GitHub Actions provider
to use the new "OIDC Authentication" title instead of relying on the
generic "New CodSpeed Feature" default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant